package tcp_net.mail.pop3.commands;

import tcp_net.mail.MailBoxFileManager;
import tcp_net.mail.pop3.commands.debug.DebugInfo;
import java.util.List;
import java.util.ArrayList;

/**
	This class provides a defined command to be executed
	@author J. Okuno
*/
public class RSET extends POP3Command 
{
	/**
		Init the class
		@param man a mailbox file manager
	*/
	public RSET(MailBoxFileManager man) 
	{
		super(man);
	}
	
	/**
		This method executes a defined command
		@return a list of reply messages in a string format
	*/
	public List<String> execute() 
	{
		//unmark any delete marked messages in a dropbox
		manager.reset();
		
		reply = new POP3ReplyMessage(true);
		reply_msgs.add(reply.execute().get(0));
		
		return reply_msgs;
	}
}